package net.factoryOpen.quickfactory.manufacturing.qua.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.factoryOpen.quickfactory.manufacturing.qua.mapper.QuaInspectReturnMapper;
import net.factoryOpen.quickfactory.manufacturing.qua.domain.QuaInspectReturn;
import net.factoryOpen.quickfactory.manufacturing.qua.service.IQuaInspectReturnService;

import net.factoryOpen.quickfactory.system.mapper.SysBillFrozenMapper;

/**
 * 退货检异登记Service业务层处理
 * 
 * @author factoryOpen
 * @date 2024-07-09
 */
@Service
public class QuaInspectReturnServiceImpl implements IQuaInspectReturnService 
{
    @Autowired(required = false)
    private QuaInspectReturnMapper quaInspectReturnMapper;

    /**
     * 查询退货检异登记
     * 
     * @param id 退货检异登记主键
     * @return 退货检异登记
     */
    @Override
    public QuaInspectReturn selectQuaInspectReturnById(Long id)
    {
        return quaInspectReturnMapper.selectQuaInspectReturnById(id);
    }

    /**
     * 查询退货检异登记列表
     * 
     * @param quaInspectReturn 退货检异登记
     * @return 退货检异登记
     */
    @Override
    public List<QuaInspectReturn> selectQuaInspectReturnList(QuaInspectReturn quaInspectReturn)
    {
        return quaInspectReturnMapper.selectQuaInspectReturnList(quaInspectReturn);
    }

    /**
     * 新增退货检异登记
     * 
     * @param quaInspectReturn 退货检异登记
     * @return 结果
     */
    @Override
    public int insertQuaInspectReturn(QuaInspectReturn quaInspectReturn)
    {
        quaInspectReturn.setCreateTime(DateUtils.getNowDate());
        return quaInspectReturnMapper.insertQuaInspectReturn(quaInspectReturn);
    }

    /**
     * 修改退货检异登记
     * 
     * @param quaInspectReturn 退货检异登记
     * @return 结果
     */
    @Override
    public int updateQuaInspectReturn(QuaInspectReturn quaInspectReturn)
    {
        quaInspectReturn.setUpdateTime(DateUtils.getNowDate());
        return quaInspectReturnMapper.updateQuaInspectReturn(quaInspectReturn);
    }

    /**
     * 批量删除退货检异登记
     * 
     * @param ids 需要删除的退货检异登记主键
     * @return 结果
     */
    @Override
    public int deleteQuaInspectReturnByIds(Long[] ids)
    {
        return quaInspectReturnMapper.deleteQuaInspectReturnByIds(ids);
    }

    /**
     * 删除退货检异登记信息
     * 
     * @param id 退货检异登记主键
     * @return 结果
     */
    @Override
    public int deleteQuaInspectReturnById(Long id)
    {
        return quaInspectReturnMapper.deleteQuaInspectReturnById(id);
    }

}
